import flash.geom.Point;

class ScreenCoordsBase
	{
	
	public var top:Float;
	public var left:Float;
	public var right:Float;
	public var bottom:Float;
	public var width:Float;
	public var height:Float;
	
	public function new(top:Float, left:Float, right:Float, bottom:Float) {
		
		this.top = top;
		this.left = left;
		this.right = right;
		this.bottom = bottom;
		
		this.width = this.right-this.left;
		this.height = bottom-top;
	}
	
	//
	// used by the PIE slices so the pie chart is
	// centered in the screen
	//
	public function get_center_x():Float {
		return (this.width / 2)+this.left;
	}

	public function get_center_y():Float {
		return (this.height / 2)+this.top;
	}
	
	public function get_y_from_val( i:Float, right_axis:Bool = false ):Float { return -1; }
	
	public function get_x_from_val( i:Float ):Float { return -1;  }
	
	public function get_get_x_from_pos_and_y_from_val( index:Float, y:Float, right_axis:Bool = false ):flash.geom.Point {
		return null;
	}
	
	public function get_y_bottom( right_axis:Bool = false ):Float {
		return -1;
	}
	
	public function get_x_from_pos( i:Float ):Float { return -1; }
}
